﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PlaceApi;

namespace BaiduApiTest
{
    class Program
    {
        static void Main(string[] args)
        {
            PlaceAPI api = new PlaceAPI("afd2da1b2c4f0b91da0c2d91e37292f6");
            while (true)
            {
                dynamic ret = api.GetResponse(Console.ReadLine(), "福州");
                foreach (dynamic item in ret.results)
                {
                    Console.WriteLine(item.name + " " + item.address);
                }

            }
        }
    }
}
